package com.dingreading.cloud.app.service;

import com.dingreading.cloud.app.entity.Books;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface BooksService extends IService<Books> {

    List<Books> getByIsbnOrBookNum(String isbn);

    List<Books> getByIsbnOrBookNumOrName(String isbn);

    List<Books> getByIsbnOrBookNumNotInId(String isbn, List<Long> bookIds);

    Books getMaxBookNum();

    Page<Books> pageList(PageUtil pageUtil, String keyword, Integer status);

}
